Demonstration of control of Birger focusers


In [1]:
# Load the PANOPTES module dir
import sys
sys.path.append('../../')

In [2]:
from pocs.focuser.birger import Focuser

In [3]:
port = '/dev/tty.USA49WG2P4.4'

In [4]:
f = Focuser(port=port)


2017-01-16 14:11:49 aaomc48as.aao.gov.au panoptes[56822] INFO Birger Focuser (10858) on /dev/tty.USA49WG2P4.4 initialised

In [5]:
f.is_connected


Out[5]:
True

In [6]:
f.position


Out[6]:
22735

In [7]:
f.move_to(10000)


Out[7]:
10000

In [8]:
f.position


Out[8]:
10000

In [9]:
f.position = 7000

In [10]:
f.position


Out[10]:
7001

In [11]:
f.move_by(-3000)


Out[11]:
-2999

In [12]:
f.position


Out[12]:
4002

In [ ]: